﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TouchDoor : MonoBehaviour {

	public GameObject canvas2;
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}

	void OnCollisionEnter(Collision collision)
	{
		if(collision.gameObject.tag == "Player")
		{
			canvas2.SetActive (true);
			Time.timeScale = 0;
		}
	}
}
